package ajaxjs.data.entry;
import ajaxjs.data.entry.common_fields.Content;
import ajaxjs.data.entry.type._Boolean;
import ajaxjs.data.entry.type._Date;
import ajaxjs.data.entry.type._Number;
import ajaxjs.data.entry.type._String;

/**
 * 实体基类
 */
public abstract class Entry {
	public _Number id = new _Number();
	public _String name = new _String();
	public _Date createDate = new _Date();
	public _Date updateDate = new _Date();
	public _Boolean isHidden = new _Boolean();
	public _Boolean isHot = new _Boolean();
	public Content content = new Content();
	public Entry(){
		id.label = "ID";
		id.isNotNull = true;
		
		name.label = "名称";
		name.isNotNull = true;
		
		createDate.label = "创建日期";
		createDate.isNotNull = true;
		
		updateDate.label = "修改日期";
		updateDate.isNotNull = true;
		
		isHidden.label = "隐藏";
		isHidden.defaultValue = false;
	}
}
